﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CatchItem.aspx.cs" Inherits="Manage_Cms_CatchItem" %>

<html>
<head>
<title>采集管理</title>
    <!--#include file="../js/html_head.inc"-->
    <link rel="stylesheet" type="text/css" href="../Themes/<%=ManageHelper.GetTheme()%>/style.css" />
</head>
<body>
    <%=ManageHelper.PageSucMsg()!=""?"<div class='msg_succeed'>"+ManageHelper.PageSucMsg()+"</div>":""%>
    <div class="mycolumn">
        <div class="columntitle">
            <%=ActName %>
            采集规则</div>
        <form id="myForm" name="myForm" method="post" action="?act=<%=ActFlag %>" onsubmit="return validator(this)">
        <table cellpadding="2" width="100%" align="center">
            <tr>
                <td align="left" width="140">
                    <img src="../pic/icons/help.gif" alt="采集名称" onclick="helpInf(this)" />
                    名称：
                </td>
                <td align="left">
                    <input name="CatchName" type="text" value="<%=modelCmsCatch.CatchName %>" valid="required"
                        errmsg="请输入采集名称" />
                </td>
            </tr>
            <tr>
                <td align="left" width="140">
                    <img src="../pic/icons/help.gif" alt="抓取的地址" onclick="helpInf(this)" />
                    抓取的地址：
                </td>
                <td align="left">
                    <input id="Text3" name="Url" type="text" value="<%=modelCmsCatch.Url %>" valid="required"
                        errmsg="请输入抓取的地址" />
                </td>
            </tr>
            <tr>
                <td align="left" width="140">
                    <img src="../pic/icons/help.gif" alt="采集页码" onclick="helpInf(this)" />
                    采集页码：
                </td>
                <td align="left">
                    从<input name="StartPage" type="text" value="<%=modelCmsCatch.StartPage %>" style="width: 60px"
                        valid="required" errmsg="请输入起始页" />
                    至
                    <input name="EndPage" type="text" value="<%=modelCmsCatch.EndPage %>" style="width: 60px"
                        valid="required" errmsg="请输入结束页" />页
                </td>
            </tr>
            <tr>
                <td align="left" width="140">
                    <img src="../pic/icons/help.gif" alt="采集频率" onclick="helpInf(this)" />
                    采集频率：
                </td>
                <td align="left">
                    <input name="Interval" type="text" value="<%=modelCmsCatch.Interval %>" valid="required"
                        style="width: 60px" errmsg="请输入采集频率" />分钟（0为立即）
                </td>
            </tr>
            <tr>
                <td align="left" width="140" height="32">
                    <img src="../pic/icons/help.gif" alt="目标节点" onclick="helpInf(this)" />
                    目标节点：
                </td>
                <td align="left" class="tdselect">
                    <select name="NodeID" id="NodeID">
                        <%=SelectNodeList(0,modelCmsCatch.NodeID)%>
                    </select>
                </td>
            </tr>
            <tr>
                <td align="left" width="140">
                    <img src="../pic/icons/help.gif" alt="是否启用" onclick="helpInf(this)" />
                    是否启用：
                </td>
                <td align="left" class="tdcheckbox">
                    <input id="Text5" name="IsUsing" type="checkbox" value="1" <%=modelCmsCatch.IsUsing==1?"checked":"" %> />
                </td>
            </tr>
            <tr>
                <td align="left" width="140">
                    <img src="../pic/icons/help.gif" alt="是否启用" onclick="helpInf(this)" />
                    图片存到本地：
                </td>
                <td align="left" class="tdcheckbox">
                    <input id="Checkbox1" name="SavePic" type="checkbox" <%=modelCmsCatch.SavePic==1?"checked":"" %>
                        value="1" />
                </td>
            </tr>
            <tr>
                <td align="left" width="140">
                    <img src="../pic/icons/help.gif" alt="解析规则" onclick="helpInf(this)" />
                    解析规则：
                </td>
                <td align="left" class="tdselect">
                    <span id="ListParseID">
                        <select name="ParseID">
                            <%=KeRui.BLL.Common.GetSelectList(modelCmsCatch.ParseID, bllCmsCatchParse.GetSelectList(1))%>
                        </select>
                    </span>
                </td>
            </tr>
            <tr>
                <td align="left" width="140">
                    <img src="../pic/icons/help.gif" alt="抓取关键词白名单。逗号隔开，自动审核。" onclick="helpInf(this)" />
                    白名单：
                </td>
                <td align="left" class="tdselect">
                    <textarea name="Whilelist" style="width: 200px; height: 40px;"><%=modelCmsCatch.Whilelist%></textarea><font
                        style="color: red">all 表示所有</font>
                </td>
            </tr>
            <tr>
                <td align="left" width="140">
                    <img src="../pic/icons/help.gif" alt="抓取关键词黑名单。逗号隔开，不入库。" onclick="helpInf(this)" />
                    黑名单：
                </td>
                <td align="left" class="tdselect">
                    <textarea name="Blacklist" style="width: 200px; height: 40px;"><%=modelCmsCatch.Blacklist%></textarea><font
                        style="color: red"></font>
                </td>
            </tr>
            <tr>
                <td align="left" width="140">
                    <img src="../pic/icons/help.gif" alt="内容附加值。" onclick="helpInf(this)" />
                    内容附加值：
                </td>
                <td align="left" class="tdselect">
                    <textarea name="ContentPlus" style="width: 200px; height: 40px;"><%=modelCmsCatch.ContentPlus%></textarea>例如：editor=陈晓冬
                </td>
            </tr>
            <tr>
                <td align="left" width="140">
                    <img src="../pic/icons/help.gif" alt="内容类型" onclick="helpInf(this)" />
                    内容类型：
                </td>
                <td align="left" class="tdradio">
                    <% if (modelCmsCatch.ParseID == 0)
                       { %>
                    <input type="radio" name="ContentType" value="0" <%=modelCmsCatch.ContentType==0?"checked":"" %> />文章
                    <input type="radio" name="ContentType" value="1" <%=modelCmsCatch.ContentType==1?"checked":"" %> />栏目
                    <input type="radio" name="ContentType" value="2" <%=modelCmsCatch.ContentType==2?"checked":"" %> />广告
                    <%}
                       else
                       {
                    %>
                    <input type="radio" name="ContentType" value="0" <%=modelCmsCatch.ContentType==0?"checked":"" %> />文章
                    <input type="radio" name="ContentType" value="1" <%=modelCmsCatch.ContentType==1?"checked":"" %> />图片
                    <input type="radio" name="ContentType" value="2" <%=modelCmsCatch.ContentType==2?"checked":"" %> />视频
                    <%
                           
                           
                        } %>
                </td>
            </tr>
            <tr>
                <td colspan="2" align="center" class="tdbutton">
                    <input type="submit" value="确 定" />&nbsp;&nbsp;
                    <input type="button" value="取 消" onclick="window.parent.ymPrompt.doHandler('close');" />
                    <input type="hidden" value="<%=modelCmsCatch.CatchID %>" name="CatchID" />
                </td>
            </tr>
        </table>
        </form>
    </div>
</body>
</html>
